# coding=utf-8
import requests
import json
import log


def sendJson(test_data, requrl, num_retries=2):
    re = None
    try:
        headers = {'Content-Type': 'application/json'}
        url = 'http://59.110.137.94:8080' + requrl
        res = requests.post(url, headers=headers, data=json.dumps(test_data))
        re = res.json()
    except:
        log.error("请求接口失败")
    return re
